package com.biostime.rpc.terminal.exception;

import com.biostime.rpc.terminal.ResponseCode;

/**
 * <p>
 * 说明
 * </p>
 *
 * @author yangrzh 2014/7/31
 */
public class CommonException extends RuntimeException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2112834950369705219L;
	
	private ResponseCode code;
	
    public CommonException(String message) {
        super(message);
    }
    
    public CommonException(String message, ResponseCode code) {
        super(message);
        this.code = code;
    }

    public CommonException(Throwable cause) {
        super(cause);
    }
    
    public CommonException(ResponseCode code) {
    	this.code = code;
    }

	public ResponseCode getCode() {
		return code;
	}

	public void setCode(ResponseCode code) {
		this.code = code;
	}
    
}
